package com.integralPerformance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.integralPerformance.common.Result;
import com.integralPerformance.pojo.entity.PointsCriteria;
import com.integralPerformance.pojo.form.add.AddPointsCriteria;
import com.integralPerformance.pojo.form.update.UpdatePointsCriteria;
import com.integralPerformance.pojo.query.PointsCriteriaQuery;

import java.util.List;
import java.util.Map;

/**
 * @author admin
 * @description 针对表【points_criteria(业绩评分标准信息)】的数据库操作Service
 * @createDate 2024-03-10 22:25:58
 */
public interface PointsCriteriaService extends IService<PointsCriteria> {

    Result<List<String>> getType();

    Result<?> getPointsCriteria(PointsCriteriaQuery pointsCriteriaQuery);

    Result<List<String>> getLevelByType(String type);

    Result<List<String>> getCategory(String type, String level);

    Result<List<String>> getGainLevel(String type, String level, String category);

    Result<String> updatePointsCriteria(UpdatePointsCriteria updatePointsCriteria);

    Result<String> addPointsCriteria(AddPointsCriteria addPointsCriteria);

    Result<String> deletePointsCriteriaById(String id);

    Result<List<Map<String, Object>>> getPointsCriteriaTree();
}
